package com.zcr.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @version 1.0
 * @author： 张诚
 * @date： 2021-02-16 11:54
 */
@Controller
public class ForwardController {

    @GetMapping("{folder}/{page}/user")
    public String index(@PathVariable("folder")String folder,@PathVariable("page")String page){
        return folder+"/"+page;
    }

    @GetMapping("/welcome")
    public String welcome(){
        return  "welcome";
    }

}
